﻿<div class="content-wrap">
    <div ng-include="'Views/Research/Common/ResearchMenu.html'"></div>
    <div class="content">
        <div class="content-pad">
            <div class="title-section">
                <div sustainalytics-company-research></div>
                <div style="position: absolute; top: 0; right: 145px;">
                    <input type="button"
                           ng-click="governanceProfile.DownloadGovernancePDF(governanceProfile.companyGovernanceProfile.fileId, governanceProfile.companyGovernanceProfile.fileName)"
                           value="Download"
                           class="btn-green {{!governanceProfile.DownloadGovernanceFileEnabled(governanceProfile.companyGovernanceProfile.fileId, governanceProfile.companyGovernanceProfile.fileName) && 'disabled' || ''}}"
                           ng-disabled="!governanceProfile.DownloadGovernanceFileEnabled(governanceProfile.companyGovernanceProfile.fileId, governanceProfile.companyGovernanceProfile.fileName)"
                           style="min-width: 135px; width: 135px; margin-top: 0;" />
                </div>
            </div>
            <div class="clear">&nbsp;</div><br />

            <div class="gray-bg-top" style="margin-top: 8px;">
                <div class="page-title" ng-hide="(governanceProfile.notFoundMessage !== null && governanceProfile.notFoundMessage !== '') || governanceProfile.noClaims == true">
                    Analyst View
                </div>
                <div ng-bind-html="governanceProfile.RenderHTML(governanceProfile.companyGovernanceProfile.description)"><br /></div>                
                <div class="row" ng-repeat="alert in governanceProfile.companyGovernanceProfile.alerts">
                    <div class="col-md-10">
                        <div class="title-alert">Alert {{alert.publicationDate | date: 'MMM d, y'}} : {{alert.title}}</div>
                    </div>
                    <div class="col-md-2">
                        <button ng-click="governanceProfile.DownloadGovernancePDF(alert.fileId, alert.fileName)"
                                class="btn-green {{!governanceProfile.DownloadGovernanceFileEnabled(alert.fileId, alert.fileName) && 'disabled' || ''}}"
                                ng-disabled="!governanceProfile.DownloadGovernanceFileEnabled(alert.fileId, alert.fileName)">
                            Download Alert
                        </button>
                    </div>
                    <div class="clear"></div><br /> 
                </div>               
            <div style="text-align:center;" ng-show="governanceProfile.notFoundMessage !== null && governanceProfile.notFoundMessage !== ''">
                <span class="title-black-bold">{{governanceProfile.notFoundMessage}}</span>
            </div>
            <div style="text-align:center;" ng-show="governanceProfile.noClaims == true">
                <span class="title-black-bold">You do not have access to Governance research for this company.</span>
            </div>
            </div>

            <div class="clear">&nbsp;</div>
        </div>
    </div>
</div>